package net.xo68.destiny.core.index.bplustree;

import java.io.Serializable;

public class BPlusTreeIndexEntity<K,V> implements Serializable {

    private K index;
    private V value;

    public BPlusTreeIndexEntity() {
    }

    public BPlusTreeIndexEntity(K index, V value) {
        this.index = index;
        this.value = value;
    }

    public K getIndex() {
        return index;
    }

    public void setIndex(K index) {
        this.index = index;
    }

    public V getValue() {
        return value;
    }

    public void setValue(V value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "BPlusTreeIndexEntity{" +
                "index=" + index +
                ", value=" + value +
                '}';
    }
}
